package com.ruoyi.attendance.service;


import com.github.pagehelper.PageInfo;
import com.ruoyi.attendance.dto.ScheduleQueryDTO;
import com.ruoyi.attendance.entity.ScheduleManagement;
import com.ruoyi.attendance.vo.ScheduleUserVO;

import java.util.Date;
import java.util.List;
import java.util.Map;


public interface ScheduleService {
    /**
     * 查询排班用户列表
     */
    // List<ScheduleUserVO> listScheduleUsers(ScheduleQueryDTO query);

    List<ScheduleUserVO> listScheduleUsers(ScheduleQueryDTO query);

    /**
     * 为所有用户生成未来默认排班计划
     * @param days 未来天数
     * @return 生成结果
     */
    Map<String, Object> generateDefaultSchedules(Integer days);

    int updateScheduleManagement(ScheduleManagement scheduleManagement);

    // 查询单个排班计划
    ScheduleManagement getScheduleManagementByIdAndDate(Integer id, Date date);

    List<ScheduleManagement> getScheduleManagementByIdAndDateList(Integer id, Date date);
}